//部门模型
if (!Ext.ModelManager.isRegistered('orgModel')){
	Ext.define("orgModel",{
		extend: 'Ext.data.Model',
		fields: [
			{name:'orgId'},
			{name:'orgCode'},
			{name:'orgName'},
			{name:'parentOrgName'},
			{name:'description'},
			{name:'creator'},
			{name:'createTsStr'},
			{name:'shortname'},
			{name:'orgType'},
			{name:'tel'},
			{name:'addr'},
			{name:'count'}
		]
	});
}

//部门树节点模型
if (!Ext.ModelManager.isRegistered('orgTreeNodeModel')){
	Ext.define("orgTreeNodeModel",{
		extend: 'Ext.data.Model',
		fields: [
			{name:'id'},
			{name:'text'},
			{name:'cls'},
			{name:'leaf'},
			{name:'orgcode'},
			{name:'description'}
		]
	});
}

//定义系统各个数据模型
//应用注册模型
if (!Ext.ModelManager.isRegistered('appRegisterModel')){
	Ext.define("appRegisterModel",{
		extend: 'Ext.data.Model',
		fields: [
			{name:'appId'},
			{name:'ver'},
			{name:'appCode'},
			{name:'appName'},
			{name:'orgId'},
			{name:'funArea'},
			{name:'url'},
			{name:'serverIp'},
			{name:'serverPort'},
			{name:'target'},
			{name:'ssoType'},
			{name:'userFieldname'},
			{name:'entityStatus'},
			{name:'pwdFieldname'},
			{name:'submitUrl'},
			{name:'validateUrl'},
			{name:'successFlag'},
			{name:'extFieldinfo'},
			{name:'runStatus'},
			{name:'useStatus'},
			{name:'vendorName'},
			{name:'linkman'},
			{name:'vendorAddress'},
			{name:'vendorTel'},
			{name:'srvName'},
			{name:'srvLinkman'},
			{name:'srvAddress'},
			{name:'srvTel'},
			{name:'showOrder'},
			{name:'remark'}
			
		]
	});
}

//属性模型
if (!Ext.ModelManager.isRegistered('propertyModel')){
	Ext.define('propertyModel', {
        extend: 'Ext.data.Model',
        fields: [
            'propertyName',
            'propertyValue'
        ]
    });
}

//员工模型
if (!Ext.ModelManager.isRegistered('staffModel')){
	Ext.define("staffModel",{
		extend: 'Ext.data.Model',
		fields: [
			{name:'staffId'},
			{name:'orgId'},
			{name:'staffCode'},
			{name:'address'},
			{name:'staffName'},
			{name:'sex'},
			{name:'birthdayStr'},
			{name:'idcardNo'},
			{name:'tel'},
			{name:'mobile'},
			{name:'email'},
			{name:'postcode'},
			{name:'loginName'},
			{name:'password'},
			{name:'problem'},
			{name:'answer'},
			{name:'memo'},
			{name:'creator'},
			{name:'photo'},
			{name:'entityStatus'},
			{name:'createTsStr'}
			]
	});
}

//映射信息模型
if (!Ext.ModelManager.isRegistered('userMappingModel')){
	Ext.define('userMappingModel', {
        extend: 'Ext.data.Model',
        fields: [
        	'mappingId',
            'appName',
            'staffId',
            'appId',
            'userName',
            'password',
            'extFieldinfo',
            'entityStatus'
        ]
    });
}